﻿<%@ Page Language="C#" Trace="false" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="LanguageVersioningPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">

	<form id="mainForm" runat="server">

		<h1 class="page">Info</h1>
		
		<div class="pageSection">
		
			<table class="propertyGrid">
			<tr>
				<td class="name">Project name:</td>
				<td class="value"><% = CurrentModel.ProjectName %></td>
			</tr>
			<tr>
				<td class="name">Master language:</td>
				<td class="value"><% = CurrentModel.MasterLanguageShortName %></td>
			</tr>
			<tr>
				<td class="name">Path:</td>
				<td class="value"><% = CurrentModel.LoadedFromXmlFilePath %></td>
			</tr>
			<tr>
				<td class="name">Description:</td>
				<td class="value"><% = CurrentModel.Description %></td>
			</tr>			
			<tr>
				<td class="name">Creation date:</td>
				<td class="value"><% = XmlFileInfo.CreationTime.ToString() %></td>
			</tr>
			<tr>
				<td class="name">Modified date:</td>
				<td class="value"><% = XmlFileInfo.LastWriteTime.ToString()%></td>
			</tr>
			<tr>
				<td class="name">File size:</td>
				<td class="value"><% = GetFormattedFileSize(XmlFileInfo.Length) %></td>
			</tr>			
			<tr>
				<td class="name">Languages:</td>
				<td class="value"><% = CurrentModel.Languages.Count %></td>
			</tr>			
			<tr>
				<td class="name">Definitions:</td>
				<td class="value"><% = GetTotalDefinitionCount(CurrentModel) %></td>
			</tr>						
			</table>
			
			<div style="margin-top: 20px;"><a href="projects.aspx">Go to the projects page if you need to change to another project</a></div>
		
		</div>
	</form>

</asp:Content>
